<?php

namespace app\api\controller\app;

use app\admin\model\Cmdlog;
use app\admin\model\Devicelock;
use app\admin\model\Linedevice;
use app\admin\model\Roomclean;
use app\admin\model\Shopcharge;
use app\admin\model\Shopchargeconfig;
use app\admin\model\Shopdevice;
use app\admin\model\Shoporder;
use app\admin\model\Shoporderprofit;
use app\admin\model\Shoproombook;
use app\admin\model\Userbalance;
use app\admin\model\Userorderprofit;
use app\admin\model\Usertuan;
use app\api\service\DeviceService;
use app\api\service\RoomService;
use app\common\controller\Api;
use fast\Http;


class Lock extends Api
{
    protected $noNeedLogin = [];
    protected $noNeedRight = ['*'];



    public function openLock(){

        $shop_id = $this->request->param('shop_id');
        $room_id = $this->request->param('room_id');

        $lockDeviceModel = new Devicelock();
        $lock = $lockDeviceModel->where('shop_id',$shop_id)->where('room_id',$room_id)->find();

        $this->success('',$lock);
    }
}
